package org.swan.web.permission.bean;

import lombok.Data;
import lombok.experimental.Accessors;
@Data
@Accessors(chain = true)
public class PermissionBean{

    public static final PermissionBean SAMPLE = new PermissionBean()
        .setPermissionId(-1L)
            .setName("name")
            .setDescription("description")
            .setScript("script")
            .setNamespaceId(-1L)
    ;

    /**
     * permission_id
     */
    private long permissionId;
    /**
     * name of permission
     */
    private String name;
    /**
     * description
     */
    private String description;
    /**
     * script to judge permission
     */
    private String script;
    /**
     * namespace of this permission
     */
    private long namespaceId;
}
